fix version functions