updated load_frame script