add accessor for debug
bugfix