new flags, janrain, and modal functionality