added pubdirj handling