changed from absolute api path to relative