adding alert to main script