removed old logging code, curried the eval function