add debugWrite to SoDeclare