fix var names
get package id