added gradle build
added custom stack support