controllers_by_type was a big mess and did not work