refactored build process, #fixes #10