fix nesting to match sst.php