changed sbt script to a heredoc