adapted path to pi