adding in device name and orientation to output to environment variables