added checks for batch parameters