make timeout a long since it is in millisec