better file resolution configfile