debug work in progress