cleanup; fixed pdf export