added few test-run modes and auto-compile