fixes #2, adding mainConfigFile setting