allow slug through, fix orphan and type being undeclared