versions: remove unnecessary variable
versions: add debug output