added socket script to send commands