partial scala support