added the ability to load several selected layers