bugfix and generate JAR