You're using circuit-breakers as a transfer switch, is that legal?
I was under the impression that a transfer switch had to be a manual change-over switch that broke the incoming mains hot and neutral conductors.