main changes for existing code `read_stream' is renamed `read_string'
better GW_ENVIRONMENT interface