Added x y z
merging auth to master
finalized z code