feat(core): implements best match error filter and better error messages.

Signed-off-by: Johny Jose <johny@playlyfe.com>