updating with fix that exports ModalLogic to global scope in production