expose open helper

fix casting issues