expose frame object globally