beginning to handle client input