copy flags from existing functions