moved transformation of coordiantes to extend script.geo lib