works on a machine with envdte, need to test it otherwise.