add a build script
add a --activate command and refactor