cleaned up subdomains and app class