look for diagonal matches in both directions and actually make the shim file work