rewrite addon using sdk