boardinit and main