setting up websockets
remove temp files