More updates to scala api