add --info, fix mainver reading.