here we go, this is how it should look like, refactored client/server creation