MC: removed reference to config dir as it is not being set and throws a nil ref exception