improved version of code.google.com/p/rsc/devweb