move client & server to own files