change to promise
flux structure debugger!