added functionality to replce slashes with underscores