updated script to version 3.1.2