migration from version 1 to 2