use open and setTimeout