check if SP script is ready before running