import all the API code – I wonder what's broken now...
wrap header stuff