added rex command