fixed issue where bootstrap applied code was being run too early due to plugin load order