move some flags to common