added flags to intents