move ls-types command to module