get handler proccesses the request