some utility functions for sbt plugins