changed api to get uints from frame, because 0 as error conflicts if one expects 0