fixed rotation issues, fixes #18, refs #13