mostly working except for a concurrency issue in servlet handling.