add configuration file in json. fix #1 as well.