added clear option and action to init