moved createdirs from defaults.