added helper methods for open and save