initiliaze debug collection at the beginning
debug level changes
read-only mode feedback
bugfix