scripts: additional work to modernize sp and adding my debugging blocks