remove obsolete code for magicupload