support copen properly