updated script to version 3.0.4