make all setting in init