make the userId attribute configurable instead of hardcoded uid