move serial init out of main header