Q: code 41 and a code 54 on 1994 GMC Sonoma

Rookie cbe0621eac06868b3efe0d8d1d3611e23c60d3114864ea2ec19a68cfbd3eebab
I have replaced the crank sensor in hopes that's what this was but it didn't solve anything the engine runs smooth but is gutless i cant get it above thirty and its drinking a lot of gas and the cat converter glows red after running for awhile it idles smooth just hesitant when climbing rpms what should i replace next with these two codes showing?
(1) Answer
I.had a code 41and also replaced crankshaft position sensor and still had code 41, after further research I found out that code 41 is also associated with the Electronic Control Module, located behind the coil packs, pretty easy job, took care of my issue and truck runs great. Not sure about the code 54.