add $ prototype and finish single command building feature.