added getHomes functionality