fix debug string, remove some duplicate messages