added stripping, and open, with modified input scheme