added XML API
added TODO commment