set up controllers and services