take snapshots of fails
update to make imagedir optional
update defaultoutdir