fixed: PLs rootfolder/subfolder detection and saving; misc code changes