this is the implementation of proj2 in less than 20 lines of code using the Twisted framework. It is much afaster and handles the cases that we failed on. Still fails when the browser closes but thats a minor fix