convert blocks to controllers.