add code to allow disabling auto compile on save