allow slug through, fix orphan and type being undeclared

It would be nice to allow through slug in insertPage