update plugin code for testing