added dup check on upload