platform: add processMessage