beginning of kernel call logic in main.c; #defines added to main.h