removed dependency on RTOS heap