How to free the market — and green it too