modifications for executing the external cmd