added xml converter and refactoring binary