debug + initialization