got rid of current and array accesses during inner core. Improving performance
add missing source files