open and save methods
Use lib for open and save