add send file function