better multitasking and signal handeling