adding nap config to build.gradle and simplifying template