this is before changing to updated ENB.h/c and adding logging
log.h/c