started debugging with some test progs; found and fixed and bunch of issues; still more to be found