adapt migrate to new insert-measurements signature