fix bug with multi frames per message; fix bug with rotation;