moving message class to utils package