added function for request queries
added function for money in pocket
added switch type