update scala
refactoring to reactive handlers