added script for sending data in real time