just promises, keep it simple til fugue is ready
wip
fixed weird function error