craft plan + fixed main.pref bugged