addition of a get_location function in the Host model