added bit flag and pc sim