hex instead of binary for support php 5.3