added communication with the script