added server interface and working on websockets