added java wrappers