added a replacement for message which allows hierarchichal messages and log level