make the flush and bookmark configurable
fix a bug in the skipping code
bookmark and recovery