stripPrefix option + settings refactoring