[core] add filter by maxwidth parameter