pass id to after.batch too