add credentials flag to thread container