latest code for extension