wrapped extract

first working version now up for review