attempt to add multitasking, look at this