parsing request and sending it back