more error checking courtesy cpychecker