program now parses the requests. Still need to adjust some cases