Plug api to messages
Totally callback hell explosion, btw messages works