add sbt file, fix bug