moving build task into core module