added utility for batch processing
closes clld/apics#9
fixed edge case for test items