removed debug lines. TODO: atomic append operation