java compatibility and profile typo fix