paths & error handling