allow nested structures, resolves #65