added location to menu_publish; changed xml to be a param