add uid check
add uid check