changed code for multiple batch loading, increased patience