logging, semaphore for data migration, hat-tip to @jessereynolds