modify message communication to static functions