start of new server handler code