add support for working in scala