fixed: ensure folder exists if in the folder.