refactoring and debug configurations