405 status working, more refactoring on parsing request