it sort of works but the gradle scripts pretty rough