added batch support for doseq
added if expression