migrate scripts to v12