add path constructor