medicine bug fixes and administration for batches