use alert instead of error so it actually shows up