added thread to load function.. need to test it tomorrow