misc. fix, misc. refactoring, and fullscreen management debug