add arguments by tempname() call
fix undefined var in TextService::buildTextHeadersUpdateQuery