fixed apnApi
fixed getMessages