switched to new json based configuration file and added unittests