updated script to version 3.0.6