fixed a runtime error and added more metadata to the new OPF