add template support and assign method, bump to version 0.3.4