cast format's
moved error messages to syslog