add scripts for space and xplan