add set hidden and update the snipmate