minor fix and unique class Ids
move scala server to its own file