refine perm check
refine dc for upload