add file detection for sbt