patched bug in file handling
lengthened websocket debug to check it out