converted to gradle and stash