autoload create datadir if not exists