debug accessors
Fixed error reporting. Need to update docs.