works with malloc; x/y values per environment vars