fix some setup errors