rename core.c to corefunc.c