add config file abilities to consoleif, and fix some small bugs