common utils for msgbus project.