add file sharing functions