get path from request