got zdistance scaling working