refactor registry out
get version from package