debug begins