fix java import fix wrapper for tramp mode