several bug fixes + speeded up the global frames per second