fixed bug
replaced with require_tree