- fixed bug where open() was not returning reference to class