smart config and mongo sessions