added gradle mode