fixing msgLog checks