inlined the choice of --private or --dir for storage