change to rpath; add apiHttpHandle and apiLocalHandle