working on scala integration -- not working yet