cleaner N,S classes. input can now be zipped or plain