added drop_until_last_slash