new: def read_env
small cleanup