Added scala support. fixed html messages