more autoconfig fixes
now almost fixed
now working with chaiscrit 4 again