Adding seperate config file and updating the way the client get's registered