fixed issues with new prim system and links