commited open and save functions