sorted reload problem, still need to fix memory leaks..