what codes?
is it a twin cam sensor model?
if so check for oil leaking from sensors, this runs down the looms to the 02 sensor and other sensor control modules and causes havoc
PM me if you need a chat, will give you my number, i see loads of these with issues