implementing server
basic server works