add java anti-aliasing stuff