used settimeout to overcome ulimit error