renamed post to batch post and added exception on error