debugging encoding and enabling multitasking