automatically saving last configuration