reverted notes changes and added xml option