ash, lsh avoid code duplication