automatic java conversion to scala is bad but I'm lazy