bugs fixed in config_gist.m