filesharing code