use chainevent by default
error checking for 0 pointer
several input files