Thanks to all who gave suggestions about how to fix the reset problems i was having with the 16f84. After trying out a number of ideas with mixed success, i ended up fitting a dc-dc converter and optos on the i/o, which appears to have solved the problem by isolating the pic completely. thanks again mark