added threading to render system