some fixes for the pubIds porting