add fprintf in box module to check msg