improve handling of slashes