add depends and fix template error