break common/main.scala into smaller files