add source tag to all imported objects
reverse all lines with dir=2