minor fixes for script recreate