update onLoad

** move initializations in another class
** threading