actually support custom template in binary