added script support