update gradle, add helper methods