added script constants
change method handling