added template for escript