updated the home file. add connection and update functions.