add multiple option code and fix spec