modified how to get version etc from package