fix missing directory creation