added flip180 switch and offset-output to autophase