more debug code, still not working ;)