add cli render, fix preview bugs