change default classpath output directory
refactor some code