remove filename as switch for template type, use script node instead