refact msg to config.get_msg for common usage
merged