added api wrapper for getPath