debug parsing request + test and exception catching