added trace printf
in the middle of refactoring nexes, swithing to a thinner client; WIP