adjusted appears to function
this seems to work on getting a specific envdte
adding some important commands