track disconnects, fix script for real