util to create zenith message object for errors
modified method