added scan option