updated for FreeRTOS v8.0.0
moved initialization