fix matches hook, remove redundant file