removes uneeded code in server class