refactor social elements into includes, still needs substantial cleanup