made xtple-api optional dependency