added sanity check for the client side