trying to figure out timing issues on pi