fixed getting GET/POST data from request