cosmetics
fixed "frame-dirty" handling
general code improvments / cosmetics