manage case with or without timeout