added commend and control null exceptions