added -R flag to remove, still working on it