fixed bug: creates folder if none exists