move client into class
move server into class