remove unused function
fix pagination error when filtering
rename variable to more sensful name
split terms apart from filters
update export types