removed checking OSError