remove usleep here - this function is used in main migration script