fix versioning issue of functions