1. fix main controller