adapt version calls to new api