some random fix file sharing function