almose done, have merge mechanism, index, syn. but no loop