add a function to read package info like version. get the version right in console