fixed egghunt for replicates and different environments