automatic loading of requires in preview