error handling in getFrameSearch