fix decode xml bug and add run method to do special action