adjust logging, and check requiresCompilation