initial working version

Fixing missing imports

filtering tags.

fixing npe.

code narc

test for tag copy