api hooks
wip
remove debugging fluff