simple implementation of get_frame