prepare ghost for prod