lib: use number as version, not object