remove dir, regex, add pipe method