fixed whatever was broken in last commit with indetect not working
commented out backflow, but still has issues
sleep appears to be working
sleep appears to be working