migrate controller declarations