shorten lines in grab-environment-state