add check for trailing slash