don't run mode hooks when compiling