improve iterator (double loop), fix races in put, cheers @60.3652,5.4292