tweaks for auto-reloading