Added support for custom filters
Added json filter.
Fixed bug with environment