added validate(), implemented showall and show local options