read and filter, add configuration options