(refactor) fully implemented build system for client distribution