adding a timeout