implement behaviour for custom bitstring field