add social middleware