preliminary lightning api spec