Cyclometalation of substrates containing imine and pyridyl anchoring groups by iron and cobalt complexes.