Try something like what GBSFileWrapper does