aded wait for loading code so it starts with new pedigree