updated get frame api