fix(main) truncate uid hash to 40 characters