cleanup duplicate code, fix user access to parent node on export