add export tool; fix pagination stuff