refactor advancedOffer packages