incorporate resquest class in code for less dependencies