some functions working, client error handling