load components from multiple directories and check for duplicates