started working on parsing messages