more generic bootstrap