first draft of HXMA file converter