refactor the way requests are handled