added methods to access path variable