added functions to scala lib