add #if PRINT_ENABLED for printf()
tl fix index and object_index