ordering fixes, java requirement