upgrade to 0.7, support 0.12