BUG: create directory in case it does not exist yet