added parameters for external flags.