build script, refactor, logging