added shell for write command