separated client code into client and janky server