adds switch for turning recursive loading on/off