add config object and json manipulation