some tinkering with mainconfigfile option