adding ability to thread