merge controller