debug and docs