add an accessor method, patch by John McCall!