fixed init function, directories are now created _after_ the names are set