use tags in distribution files, refactor build files