use logging for messages output