server now handling clients as intended