add refresh support

the refresh method will be put into the XML manifest only if it is supplied