wrap some use of packages in boundp checks