adding global messages api kinda thing