no memory leaks, just a few errors here and there