evaluating thunks in the correct environment