server script to migrate text measures to binary ones