updated resource definition to have byte source so we can use templates