Small improvements to php client here and there