add util functions
add to xml