add --in-memory option to run