add init and build command and break out code