small fix to save memory
comment about maxage_syncflags
move 'restore old maxage' to right place
small fixes to save memory
fix maxage related to Sync flags without maxage code