move file extension saving into migration