added function to get and send data to ftp site