fix populate script so it works with new model setup