very first draft of the slab driver from the old api.py - which is now removed