added multibit support