cleanup, create collection bugfix edge<->doc