re-add lost directory creation