more optimisations
getting ready to multithread
preparations for multithreading
refresh method introduced