-implementing trail timeout handling