server and client now working