add a bit more error checking
1 file changed