separated path post processing to its own class