added more flag search steps