batch becomes a library