fix java bug. add advanced config args