refactor rank output stuff, fix build.xml