adapted as for supporting newer versions of gradle