fixed api path construction