add status pins and fix gpios
use status outputs for stalled and sync
finally fix interrupt