error checking for client