added print switch and updated status code for used relval
redirector