changed the path lookup to include request method