added debug data (needs a new api function to spinman)