extract code from md to ScalaSessionFlash.scala