adjust open() call