add function to send current status to amazon ec2