finally working level zero extraction. not fully tested but coadding and stateids seem to be fine.