set inactivity timeout properly