adding inactivity timeout