prepare to get rid of xml