added user id to some function calls from the api server