apply this to phantomScript action