handle deadlines properly