replace require with require_tree