refactoring of ec_core
fix debugger empty vars