use stdout, fix download, classpath bugs