remove extra copies of uploadify
code deduplication