Debug mode

wip