updated scripts and doc