return status of commands run