updated server methods to handle req's