more work towards supporting django templates