changes to client fuctions