fix up templates to use LWRPs instead of attributes
also change the recipe to use LWRP