fileselect modified, but still need to modify getParentPath