updated script to version 3.0.5