adjusted assemble to use new file attribute handling
Merge pull request #1928 from akerl/assemblefix

adjusted assemble to use new file attribute handling