add batch
bug fixed
add exception handling
add batch url support