add extension code