added exception control
Changed base accepted type. FolderUrl has a lot of results, and not are reasonable
added more control to avoid exceptions