allow for mirror schemas and replace flags