auto create script - error handling