use a default batchsize of 20 if none given, fix #220