I thought I remembered something about a software update for a stalling issue but after doing a little searching it looks like that was for earlier years....2001 mainly.
You mention a hesitation between 2500 and 3000.....does it feel like a miss under acceleration in the higher gears? Mine was doing that and everyone tried to tell me it was Vanos so I rebuilt it and it made no difference. I had also read that there was a software update to fix this issue. I took my car to an indy that updated me to the latest software version and it cured it completely.
Here's the thread that convinced me to try the software update....
http://forums.bimmerforums.com/forum...d.php?t=833003
Here's the thread where people tried to tell me it was Vanos. See my post #49....
http://www.bimmerfest.com/forums/sho...d.php?t=120971
I think if I were you and your "Vanos" problem is the miss like I mention I would have either a dealer or indy with the capability to do software updates to update you to the latest version. Maybe you'll get lucky and it will help with your stalling issue also.
Good luck....Barry