Added hooks for bids

added hooks and some cleanup