debug + gui