Java 1.5 compatibility
allow non-forked execution
fixed memory leak