sbt build definition and some desing notes