added automatic zxy

Do we want to remove this before merging?