added function to get frame offset
drwxr-xr-x - ir