new functionalities added to the Java version