don't port connected_by
remove unnecessary constants and handle attribs