add snapshots. refactor directory creation to be one liners