added home functions to ard. code