trying to sort out some timing issues