corrected require to work with several roots