get offset by filename