handle pre-1.7 migrations