splitted template loading based on env to prevent unwanted autoreload