expose handy native calls in java