added debugging output for shareObject