add client server if statements