debug still in progress, but there is some things more which now works