added ability for lua to log messages