fix resource leak in configfile
Small bug fixes in MCB