break definiions and vblank handler into modules