added residence controller and migrations