add uid check