fixed some debug msg + problem on dynamic EOC