add logging to expgen