initiated and config for ghost