some house keeping and basic settings