updated to support trusted package flags