added sleep function after downloading bonfire