add velvet version detection functionality