a few helpers for working with XBPS