discover command support, plugin support

@nikicat I see, my bad