adding filters and pretty print option