add some batch oriented functions