Comments on non-Elgg pages

We have a bunch of pages that we want our users to be able to add comments to, but those pages are not hosted by Elgg and cannot be.

I've successfully done this, but I had to override a couple of core code that doesnt quite feel right to me, so I was wondering if anytone knew of a better way.

What I did was to copy the add.php from the built in commenting and just after the action gatekeeper add:

function annotation_created_handler($event, $object_type, $object)
{
      echo elgg_view_annotation($object);
      exit;
}

register_elgg_event_handler('create', 'annotation', 'annotation_created_handler');

and then at the bottom, comment out the forward.