update conversion script for schema changes