updated handlers to have run and persist wrappers that mark the command as run and persisted