changed message fields to public access