Finding flexibility in substitute teaching