added the flags strategy in comments