changes in logic for java and the preferences part