forgot json import
threading to processing, regex fix