finish converting pkg annotations to pkg_object