regroup core sript into core folder