fixed three issues, ~ expansion, med not existing, and a lingering issue from datagrok's vbox
delaying creation of a folder until i know ill need it