move extra $rc test into block

where it could have been set