add leopard's core source code