adding filter and file output options