implement class server again