separate uri and path