first stab at refactor for body matching. needs cleanup
Forgot to export function. needs tests