little bit modify get-option fun