updated script to version 2.1.1