[enh] handle version at a single place