maginally better config file handling