made json configurable.
fixed bug in inline.
file handler now passes in config