add support for editing existing entries