ensure path is defined