add config and common utils, try saveAsTextFile API