added method to switch to backward compatible getPath