improve plugins API
optimize Menu