updated for Chain-iOS 3.0pre3