better checking in the retrieval of latest version id
new: bash