included take screenshot and phantom exit scripts inside phantom return response script, added error param to phantom return response script