added diagnostics to hgfriends