statespace scripts and layouts