removed older java-based main function