revamped build process and logging