adding mirror support