added option for filter_dict to make a copy to support write_objects method