animation sequence mesh not moving corectly

so i made some animations in blender and exported it but when i watch the previuw its not working right


this is how it should look like and how it is in blender

this is the previuw in ue and is not working right


in the skeleton mesh some of the bones dont rotate corectly
idk if this has to do with my other problem or not