add rule and test
fix platform bits
fix bits
Merge pull request #282 from mimmi20/issue-281

Fixes #281