migrating rest files