start of sim debugging