added request queries to some of the function.