fix frame order, add fps setting