try to sanitize java usage (as far as)