include cstdlib for EXIT_FAILURE