changed remaining occurrences of 'home' into 'main' for continuity