more error checking before running includes