only print message if it is not empty
provide direct read-only access to weight