fix build.gradle, remove unused code