oops, proper checks for server vs client