wip: added new debug info
wip: satisfied old API