working version of server