settings for main for location and last open file path