add debugging msg for self variable