update dependency
make sure template is never null
update dependencies