logic mistake - restore checks for presence of '/'