debug outputs added