made last slash optional