adding safe to online uploading and downloading