fixing error display and removing JAVA integration code