cleaned code + FIXED message manager format (didnt give good results)