added open stub
splited open and resource