add support for resolving package id