edit has extra debug stuff