change timeout to ms