added 'allowdupe' to support users sharing same uid