removing tryGetMsg func, adding try/catch to getMsg func call