Wiring in shadow extraction

WIP: @markhibberd 



@markhibberd @charleso CLI test