merged message module to main script