some video fixes and startup input code