fixing major bug preventing handlers from loading installed modules using require