resolve controllers by type