chipSelects logic rewritten