more specific user id, fix scope bug